test case name modified, window  defined as global