Added functionality to test if cron is scheduled