added mocha unit tests, changed `path` option to `route`