Setup karma/mocha/chai and write a few unit tests.