Issue #757: Fix printing stdout to the terminal continuously when running tests.