fix test fail in postgres