test stats.js consume the data of kafka