Enhance testPdfOk method.

Cleaned up PdfCreationDetecitve + starting to develop something that shows if outputfile will come out empty.