Fix things to work with Test::Stream

This is a minimal fix. Ideally Test::Class would be switched around to
actually use Test::Stream directly, but that is a huge task.