If there already is a class as attribute, a new class won't be created. The attributes  will be copied to the existing attribute. (Scenario 3)
Added test for this function.