Add tests for cron