test for logout