Add tests for Ruleset and Rule.