[fix] some tests fail occasionally on postgres