fix login/logout test