Fix unit test failure.

In test diff ignore text some class is printing to std::out in its constructor.