test that a chain of dependencies is correctly determined