Add regression test for router was overwriting PATH_INFO

[related #17233]