Added test to user registration