add ModApi, WidgetEdit and update test