Add test for MatchingSubject group function.