First of all, if the same user has jobs in the queue, then this test will not run. assertEqual(nRunningJobs, nJobs) takes care of that. So, this isn't a problem. These tests has to be done in a test machine where you can create and delete jobs for the same user. That is the test anyways.

I will implement your suggestion for the job['id'] and test it.