Require index.js in test