Added comprehensive unit test coverage for single exclude rule. Fixed corner case for artifact ID matching where org and module are exact matches.

+review REVIEW-5257