Adding debug mode.

In debug mode, test execution aborts on first exception - this allows
tester to investigate environment and determine cause of failure