stop using _WidgetBase.connect() and other deprecated methods in test files, refs #16585