added a test for excluding files. Closes #1