clean up the pgtap check a bit