tests: don't leak stream.