Small bugfix for tests with non-zero exit code.