Unit test using input and output proto files (#223)

* use input/output files for protos in test.

* remove proto generated from code.

* update resource test to use files.

* use generic data file for scale test.

* remove unused files.

* replace panic with t.Fatalf

* refactor testdata files.
17 files changed