Added test for cyclic dependencies