update files index.js and test.js