Added test for infinite recursion in DependencyTree.