Test for circular inheritance.