Adding two new test cases for exclude configuration use cases.

Extension of #2046, not excluding an item from the list of files if it starts with one of the excluded items.

Closes #2046.

/cc @jbranchaud