tests for RuleCPD class