Change tests to not modify Core_Root (#23470)