What about tests for situations like:
`
./A/B/*
!./A/B/file.txt
./A/*
` => file should be excluded

Or file is being excluded by two patterns.