add tests for protobuf storing