Made unit tests work somewhat.

To run unit tests, open a shell and run `npm start`. In a separate
shell, run `npm run test-watch`. The first shell will `watchify` your
source and build `dist/knowledge-graph.js`, and the second will watch
that file and the test spec files for changes.