Simplifying and improving RulesExpressionTraitTest.