unit test - chat-controller