Add integration test for preservation of exclusion of transitive dependencies