[silviu,alex] fix randomly failing test