Fixed test for postgres specific errors