added test for cyclic dependencies