Added test cases that apply multiple dependency or module exclude rules at once.

+review REVIEW-5257