Added index.js test.