fix randomization test