better test to ensure PGError before teardown