Modified the test strategy for route matching tests