test correctly for file existence