added specs with 100% coversge for index.js, router.js