Add tests for ProtobufSerializer