Add test for auth/token request infinite recursion bug