The maintenance scripts in core are nearly all untested, with a 5% test coverage for the folder reported by https://doc.wikimedia.org/cover/mediawiki-core/maintenance/index.html.
Testing these maintenance scripts is important, as a bug in some of the more important scripts could cause issues. It also makes it easier to run less-used maintenance scripts, without having to check that they have not broken due to regressions.