add integration test for logout