Improved TestManager._compare_pdfs().