Cleaning test output by removing extra logs.