Fix RulesProfile UT.