Fixed setLoginStatus and isLoggedIn tests