Move basic_auth assigment spec to the right place