make TestFileChooser more tolerant