corrected test.js