Fixed testcase testLastRuleOverridesPreviousRules
Added testcase testRolebasedRuleOverridesRecordbasedRule