We can define a unique doc for each test in a seperate doc file so that it does not polllute the test files. The doc will be updated for each test.
Not too sure why but window.frames is returning null when doc is updated after the first time.