Fixed async test for auth.