added tests for local window and iframes