Fix Url rewrite tests