test non-writable file