IW: Start testing

Minimal karma testing integration. 
Should be pretty easy to write basic tests for these, they're pretty independent of everything else.