Updated tests.js