fixed failing test on postgres