Make tests pass again

The problem was that now we need to add "+w" permissions before deleting
directories.