Add test for auth failed