Added permutation test