Refactor file reference tests so that they are not centered around
filenames