Test script CreateWindow