Added unit test for registry class