Writing tests for job_spec