fixed file reading tests