test chat repository