Test cases ported from pull-stream.