Fix test for registry