CLN: rename test method parameter name 'object' to 'self'
As part of #26128, I saw that in three test methods, their first parameter has been named ``object`` rather than ``self``. This rectifies that.