Changed the Test to check the dependency.type instead of dependency.from
to get more accurate test results