[#1251] Fix pdfpreview tests