create tests for svg_to_image

I was going to reraise the error, but then I decided to make my own. Good catch