fixes #7

Developers can now specify whether they want the process to exit with an error code if the tests fail.
Merge pull request #8 from jmdobry/feat-failOnError

fixes #7