Test adding custom rules