added svg to/fromJSON tests