adding test for index.js