several minor bug fixes (test suite cleanups, widgetset mode, JWt)