add code to test update widget.