fix unit test for cron and stderrs check nil.