Added test to check for target cyclic dependencies.