Adding unit test for scheduled action, and adding cron example for documentation