Added registration unit test