Test api.disconnecting in friendly.logged_in method