Added test code for clearStdOutBuffer() method