added test function for matchcontent