Tests for PDF file validity