Some basic tests for injector backed registry.
Remove redundant registry search method.