Utilities to test STDOUT and STDERR messages