Fix TypeError: __class__ assignment: 'TestFlexibleMCP' object layout differs from 'UnboundSelf'