Transitive dependencies - unit test

Add a unit test to make sure transitive dependency exclusions work.