Fix tests for PostgreSQL.