fixed problem in the randomization test