test rewrite rule