TST: prevent stderr from leaking to console in util.testing