updating to work with latest mocha