Fix test instability