Various improvements to example widget testing script