fix failing authentication tests