fix bug in job tests