added test for PDF thumbnail generation