add CreateNamedWindowTest and OnSelectWindowTest