create tests for svg_to_image

Not that it really makes a huge performance difference, but if we check if `extension == '.gif'` it'll save doing the `.upper()` call twice.