stream: test Duplex in object mode