Worked on the way to test with nodeunit and move the index.js from lib to the root directory