Updated tests.js for clarity