updated tests.js