refactored the authentication tests. Having trouble making the authentication fail.