The test works now.
Only the reduce_output_stream should be plain.