improve unit tests for JobService