Fix broken reference
Add a better integration test for exclude pattern