Make router_test timeout more robust.