add last_error test for job