Mock output in failure analysis tests

It would be nice to mock out printing outputs in failure analysis related specs as it makes documentation test output quite a bit harder to read.

Examples:

Edited by andrey