Testing write permission