test write privileges