fixing test weirdness with file read