modified test.js file