finish registty method and test passed