add tests for cron