Added tests for dom event handlers on widget.