Update mocha version dependency and require mocha/api