Fix svg midpoint tests