Bug 1042967 filter filenames before loading the file

i don't understand why `name` would ever be empty here, and then why the test should return true?

if you are replicating condition from above replaced code, that doesn't seem to apply anymore, as you have split the fileFilter and testFilter functions..