Fixed Registry unit tests.