Re-adding the capability to exit with an error when a test fails.

Currently, the test runner always reports success, even when the
test fail. This renders Travis tests useless as they rely on the
success/failure code to determine build success.