Add test for window assignment in IIFEs