adding tests for rulesetFn() feature