Fix issue where cron test did not run properly