test write permissions