Added test for do_chat