add helpers to Rule, test helpers