Fixes broken tests for 0.1.7

It seems the build process used forgot to check that the tests were actually failing. It just so happens they they were, and it's making it very difficult to fork and extend the project.

This pull request adds a callback to `mocha.run()` that will report failures as an exit code, preventing false positives in the future.