add test code of jobs_helper