tests: actually exit with error code on failure