Add FileRewriteRule tests