Ensure stderr content is disposed of during test runs.