Fix bug when base classes were declared out-of-order.
Out of order base class test.