Fix typo.
Add sinon.js as test dependency.
Add beforeEach callbacks to all tests where applicable. Require sinon.
Simply extract methods from findShortestPath and use findShortestPath as
a template method.
Bump version to 0.3.0.