add OnDeleteWindowTest