Test adding static methods using structural class redefinition.