added test for user registration