Add tests and refactor svg_tags into two main methods.