added test widget code.