Test cases for chat controller.