added error specs on applying to a job