Added tests for Stream