Added to testfunctions for isPermutation

I still need to check syntax