Add test case for stream pausing.