changed handling of dependencies (all dependencies are stored as
ResolvedDependencies even if they are added directly)
modified test to access protected method addDependency()