test for chat simulation, failing; make it work and study how it can be improved and streamlined