Fix exclusions implementation and test.

Closes #1