Unittests for Widget.