Testing write permissions