Fixed PostgreSQL tests