Update mocha to latest version.
Fixed some code issues.