unit tests for svg.c