testing for multiple permutations