Fixed test by topologically sorting classes in OverrideResolver.
Fixed test after introducing new warning.