fix test for file read