Testing hierarchies. Fixing bug when two classes had same attribute name with different type