minor change based on code analysis report
updated isLoggedIn tests