Fixed test in rare cases where the 5 files was not written fast enoguh before the file consumer pickup only a subset of those 5 files