Make rootPath part of regex greedy

- Fixes #10977
[HttpKernel] simplified some tests