add tests for RulesReturn