Added tests to DependencyBag class.