added test case for streams