Testing window.Defer