Fixed Postgres tests