Extended the monitor resource by the "matching" parameter
Add test cases for extended monitor resource.