test write permissions ok