test for chatClient.