fix test widget bugs