Added test cases for ChatClient