Add a test to make sure we are serializing the same as protocol buffers.