Adding comprehensive subdirectory route tests

This PR adds new tests which cover the subdirectory behaviour. It verifies that the behaviour reported in #4476 is not reproducible in the default case, and that PR #4477 breaks the standard redirection behaviour.

closes #2230, refs #4477, #4476

- Test that subdirectories route correctly no matter how they're specified