added tests for widgets.