Created test case for router.js