Logout test fixed