added test permutations and permutations