[feature] unit test for extendAppRoutes