Fixed authentication tests properly