added cron tests and scheduledWorker type