get mocha tests passing

Required to run with latest mocha