refactored authentication test cases class