fixed bug in TestPDFReader