fixed postgres tests