Fixed #23995 -- Removed unnecessary calls to self.client.logout() in tests.