add test codes for google protobuf