#6: Added functional tests for PDF generation.