Created unit test on user registration