ensure user has write permissions when modifying files

some test libs are modified to be read-only, so this functionality is tested