added test for stream buffer