Add test suite for chat function.