rename: add test

Closes #26771.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>