Add stream test.
Support separate read/write streams.