Make tests work on Java 8.

Assert the expected list of CollectFilesOperation after sorting.