Tests output via buffereing