fix the test data input stream's read when reading more than 4096 bytes at once