DEV: Add SVG tests for 31e31ef44 (PR #10205)

Followup to the security commit in 31e31ef44, here’s some tests to prevent regressions.

GitHub

Looks good! If CI passes please merge.