Fixing tests in Postgres