Add a test case to cover stream pausing.