Renamed and improved test for PdfGenerator.