Changes to ProtoBufDeserializer and add tests.