Fix authentication tests