Add tests to verify that file.managed will set permissions correctly on existing files.