chore(tests): Set up karma and fix existing tests

I was pleasantly surprised to find that process quite easy...

Fixes #22