Added permute test