Added rule-entity handling methods to ReModel
Added tests for rule-entity handling in model