Include pdfminer as test dependency

Also fix test for current version of pdfminer