Refactore the routing test