get test widget code