GUI -- Implemented Instance Panel.
- handling addInstance event.

Change-Id: Ic98a3291bd37ecf1155dbe1696167d0635a31972
diff --git a/web/gui/src/main/webapp/tests/app/fw/svg/glyph-spec.js b/web/gui/src/main/webapp/tests/app/fw/svg/glyph-spec.js
index b72de5a..a7179e3 100644
--- a/web/gui/src/main/webapp/tests/app/fw/svg/glyph-spec.js
+++ b/web/gui/src/main/webapp/tests/app/fw/svg/glyph-spec.js
@@ -252,7 +252,7 @@
 
     it('should add a glyph with default size', function () {
         gs.init();
-        gs.addGlyph(svg, 'crown');
+        var retval = gs.addGlyph(svg, 'crown');
         var what = svg.selectAll('use');
         expect(what.size()).toEqual(1);
         expect(what.attr('width')).toEqual('40');
@@ -260,6 +260,10 @@
         expect(what.attr('xlink:href')).toEqual('#crown');
         expect(what.classed('glyph')).toBeTruthy();
         expect(what.classed('overlay')).toBeFalsy();
+
+        // check a couple on retval, which should be the same thing..
+        expect(retval.attr('xlink:href')).toEqual('#crown');
+        expect(retval.classed('glyph')).toBeTruthy();
     });
 
     it('should add a glyph with given size', function () {