tests: exiting with error code when tests fail.