Added unittests for JobManager
Added unittest for run job fail case. Updated documentation.