fix random test