BS-1782, replace some tests of JobTests, by unit tests