Add tests on route and generator command