Helpers that make writing min-stream unit tests easier.