Fixed pgsql tests