add tests to dispatch events on 'window' and 'document' inside iframe