Good catch. The instance variable is not actually accumulated -- a separate method returns the sum of attributes in this class and all ancestors. The attributes being set here are for this class only, so I'm changing the name of this method to reflect that this is not additive.
Separate unit tests to check to see that derived classes that set attributes get the full set that includes those from superclasses.