test: handle filenames that have directories in them