Refactored testBindWidget.