Fix failing postgres tests