fix pg tests