Add Mocha and Karma for tests.