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

? baeEncdngName.name
          : null;
        
        f (encdng.ha("Dfference")) {
          cnt dffEncdng = encdng.get("Dfference");
          let ndex = 0;
          fr (let j = 0, jj = dffEncdng.length; j < jj; j) {
            cnt data = xref.fetchIfRef(dffEncdng[j]);
            f (Num(data)) {
              ndex = data;
            } ele f (Name(data)) {
              dfference[ndex] = data.name;
            } ele {
              thrw new FrmatErrr(
                `Invald entry n 'Dfference' array: ${data}`
              );
            }
          }
        }
      } ele f (Name(encdng)) {
        baeEncdngName = encdng.name;
      } ele {
        thrw new FrmatErrr("Encdng  nt a Name nr a Dct");
      }
      
      
      f (
        baeEncdngName !== "MacRmanEncdng" &&
        baeEncdngName !== "MacExpertEncdng" &&
        baeEncdngName !== "WnAnEncdng"