extend Array#permutations: test