simple tests for Stream class