test: fix dev dependencies and tests

fix up dev dependencies. `npm install` works now without peer conflicts.
Tests pass on Karma ~0.12