proto parser and unit test