test: recreate window object in beforeEach
test: recreate window object in beforeEach

recreates global.window object from scratch in each test.

fippo/rtcpeerconnection-shim,fippo/rtcpeerconnection-shim