Add unit test for tooltips on SVG elements

Fix #14076.
Not sure about this long string here. Maybe use a variable like above for the styles?