updated test for authentication spec