added new unit tests and an itegration test for the new dependency 'type'