Fix debugging printouts when running tests.