fixed redundance in testPdfOk method.