[core] Fix ruleset test