test-chat: fixed leave message fetching