zeroOrOne rule with test