Testing duplex streams