Add regression test for router was overwriting PATH_INFO

[related #17233]
Merge pull request #17234 from arthurnn/add_regression_for_path_and_cascade

Add regression test for router was overwriting PATH_INFO