Added is_main_job on contract job. Inherited field job_id as functional field related to the main job. Added yaml tests for this feature.