test: add unit test to verify issue 6582

when a negative ignore pattern is set for a file which
is not present, the missing file does not get a 'child'
event emitted