Moved utility function
Adding initial test for index.js