Fixed unit tests for server/job_func.