Switch to string comparisons for these tests

The change works both in the Postgres branch and master