added missing setWidget method for TestCase