Wrote a few tests
Added karma, grunt test task