testing c++ api with protobuf