improve stats.js test