Fix issue where failing mocha test did not fail the build