Remove unused import.
Added test case to showcase loop can be used to build route.
Added test case to showcase if-else can be used to build route.