Fix functional test to use UrlGenerationError in place of RoutingError