Fixed a bug with ProtoRegistryTest