unit test for registerNewUser success scenario