Update mocha version dependency and require mocha/api

[Closes #470]