[ruleview] Part 1: Rebased and added test