Fix tests.
Upgrade mocha. Add dependency badge to README.