improve tests JobFactory
add tests on ResolvedJob