test leaf exclusion