updated tests to use ProtobufEncoder