convert test to AMD baseless, remove dependency on deprecated widget.connect() method, and add missing d.getTestErrback(), refs #14703