Fixed login/logout tests.