Nit: I'd probably put this method before test_routing since test_routing uses it. Makes it slightly easier to read top-of-file downwards.