Fix Widget Test contents being duplicated to empty windows created afterwards.