GUI -- Fixed broken table-spec unit tests.

Change-Id: I3b4d777a3f514759a2b19e442ad320280f46e5b4
diff --git a/web/gui/src/main/webapp/tests/app/fw/widget/table-spec.js b/web/gui/src/main/webapp/tests/app/fw/widget/table-spec.js
index 688897c..1e853c0 100644
--- a/web/gui/src/main/webapp/tests/app/fw/widget/table-spec.js
+++ b/web/gui/src/main/webapp/tests/app/fw/widget/table-spec.js
@@ -72,8 +72,14 @@
     beforeEach(inject(function (TableService, _$log_) {
         ts = TableService;
         $log = _$log_;
+        d3Elem = d3.select('body').append('div').attr('id', 'myDiv');
     }));
 
+    afterEach(function () {
+        d3.select('#myDiv').remove();
+    });
+
+
     it('should define TableService', function () {
         expect(ts).toBeDefined();
     });