Fix authentication test