Add regression test for router was overwriting PATH_INFO

This works on master, but was broken on 4.1 , #17233 fixes on 4.1 , but this PR brings only the regression test.

[related #17233]

review @rafaelfranca @matthewd @tenderlove