Added test to check for proper ordering of the inserted jobs.