add a test for cron job