Mob 2444 chat tests fixes

again - you can make it simpler
if (loggedIn) {
    //logout
}
login(username);