test/report error writing to stdout