test: fix dev dependencies and tests

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