update tests.js by aalmada