Fixed unit-test for permutation variables