add tests for JobFactory