fix: unit tests for RewriteRule