Add tests for cyclic dependencies