#34 Rejecting authentication in case of error - correction of unit test