fixed random test not using true