add test for stream.stop