Small tweak for random cost test