test login/logout