Update index.js

update test case