add tests for the base stream class