exiting tests with non-zero if failed