refactoring directive for rendering shapes
unit test for ngSvg