Fixed PostgreSQL unit tests