add test for chat