Fixed tests for index.js