Added tests to Stream in preparation for a couple of changes.