replaced mocha with karma test runner