Widget Factory: Fix multiple var statements in test