Tests for classes cyclic inheritance