Add a test for logout