Fix bug where the scan aborted early for the pattern b/*/*/file.dat
Add some new tests to account for the b/*/*/file.dat bug