Fixed registry test case