router.js: unit test