Removed totalJobs as an explicit field

The invariant totalJobs had to be maintained manually, but not anymore!
Added coverage for the waitingJobTypes