register/login/logout and tests