Added unit tests for RulesExpressionTrait.