Fixed the test suite for postgres.