write tests for routeConfig()