Modify test case to keep track of URL query segments in routing patterns