Revise pgsql tests