Add test for registry decorator.