Test write permeations