fixed authentication tests