refactoring: function to create mockTestingT objects