test(runner): add karma, migrate old tests to mocha