Update index.js

Close when test fails