test rewriteRequire