permutation, tests