Ensure script permissions and fix up inherited test