console object in Unit test is same as parent window, so you can browse a console.debug'ed object after the iframe destruction