Session test for logout