Written test cases for user registration