Fix random test