Bugfix on inherit private magic methods

A test dedicated only to `ClassGeneratorUtils` is missing