Add unit tests for WidgetRenderer