Fixing the test of the cron. todo: fix the other tests.