Fixed authentication tests