Proper behavior of failed tests when Mocha is used.

fixes #8