fixing mocha testing script