pl-667: "Apply dependencies filtering while traversing the transitive dependencies tree" - test added.