added testOpenPdf