Dynamic router algorithm works for Testcase2