added login/out tests