Added a check to make sure the first parameter is a function
Removed the bower install from the npm test script