Added test for user registration.