Fixed regression in Cron. Added more tests.