add read with length in test-read_stream