Add unit test for tooltips on SVG elements

Fix #14076.
Maybe put these properties all on their own line?