Add tests for _Job, fix some _Job bugs