Ticket #18924. Made test.Client.logout send user_logged_out signal.