Add test for lookupRegistry()