cover authentication_spec tests