Running the tests doesn't check the result of the worker based pdf processing code. This should be the case.

const currentImgData = objsPool.get(objId);
          expect(currentImgData.width).toEqual(firstImgData.width);
          expect(currentImgData.height).toEqual(firstImgData.height);
          expect(currentImgData.kind).toEqual(firstImgData.kind);
          expect(currentImgData.data instanceof Uint8ClampedArray).toEqual(
            true
          );
          expect(
            currentImgData.data.every((value, index) => {
              return value === firstImgData.data[index];
            })
          ).toEqual(true);
        }
      }
      await loadingTask.destroy();
      firstImgData = null;
    });
  });
  describe("Multiple `getDocument` instances", function () {
    
    
    const pdf1 = buildGetDocumentParams("tracemonkey.pdf");
    
    const pdf2 = buildGetDocumentParams("TAMReview.pdf");
    
    const pdf3 = buildGetDocumentParams("issue6068.pdf");
    const loadingTasks = [];
    
    
    async function renderPDF(filename) {