fix test for postgres