Added tests to login/logout