The test for the capypdf extension should only be run when we are building with WITH_CAPYPDF
WITH_CAPYPDF