Move tests/index.js to test/index.js