completed simple test_widget, minor widget code cleanup