fix tests with file-name-as-directory