exhaustive tests for read_stream