Added test of pause and resume for queue with 5000 tasks.
Gets RangeError