added test.js file