fixed small bug in registry, 100% test coverage on Registry