Add tests for _log_the_user_in()