added tests for user registration