test for authentication controller