Add test cases for router and route.