Test for UserSession.logout method