Tests: Cover term sanitization for editing.
Verify get_term_to_edit() returns a term with edit-context filtering applied to its name.
get_term_to_edit()
Developed in: https://github.com/WordPress/wordpress-develop/pull/15428
Props shailu25. Fixes #66481.