Add unit test for tooltips on SVG elements

Fix #14076.
Meh.