added test cases for user authentication