abstracted parsing tests and getting filenames  away