fix routing test bugs