jeffjiang: fix customrule test such that it can detect failure to match custom rules