window handle testing