Fixed exit code

This PR fixes `_mocha`'s error code to be the number of test failures (like master). Related: #333