added test case for ChatClientTest