Added tests for routerUtils.js