Fix for the failing wrapper tests.

Both have the same transformObject method but they are both samples so this is by coincidence. Other things using the widgetWrapper might have different template substitutions to make, so didn't take this out into the WidgetWrapper.