cron: fix tests
Merge pull request #11127 from makinacorpus/cronfix2

cron: fix tests