Testing writable permutation