IW: Start testing

Minimal karma testing integration. 
Yeah actually good catch. Something is messed up with Leaflet in Karma. So I was having issues getting stuff passing. I should come back to this.