fix core svg parsing and unit testing