fix postgres tests