Improve timeout control in routing tests