Avoided modifying current environment in admin_scripts tests
Fixed #21092 -- Ensured admin_scripts tests are run with warnings off