test file-name function