Add test for AddRule
Add match method