IW: Start testing

Minimal karma testing integration. 
Yeah I agree... I was thinking about adopting a property based testing system for this types of methods. Work on that in a different branch. I would remove this spec as its empty right now. This was more a note to myself to do this.