testing stream types, added an example