Fixed PostgreSQL tests.