stringifying output contents in test/lib/stream/transform before assert