Added unit tests for the protobuf stuff. Basically a port of the com.google.protobuf...