Fixed #22771 -- Fixed test.Client.logout when using custom auth backend.