added unit test example for registration service