improve test coverage of filecmp (closes #21357)

Patch by Diana Clarke.
1 file changed