added assertion to logoutTest