23960 make tests windows friendly

For some reason on windows the file.read wasn't going to the end of the files. Now tests pass on windows.