Expand stream.cs to cover read and write testing.