MT#6981 add test for rewrite-rule with variable in match part.