Fix issue with urlrewrite_redirect in unit tests from last commit