Fixed warning from test_widget