Issue #322 - Fix index.js tests.