Updated some of permutation tests