MDL-48192 tool_monitor: check output buffer and not ignore it.

Check what is thrown in output buffer and
make sure output is expected output.