Fixing test for PostgreSQL