Modified test cases to reflect changes done to registerUser