Convert all of widgetTest.js (#634)