Used RewriteTestBase.getWebClient() instead of injected WebDriver in testes where Javascript execution was needed. Also added one test for an URL which shouldn't be rewritten