Adding tests for writable slices and permutations