more tests passing on index.js