Defensive tests for avoid errors if no files to work with.