I don't think we should test this, we never do, neither we should change location of the add-on window. I think testing that window is unloaded on loader unload is a lot more reasonable test to perform. By making sure that window is unloaded I mean testing that iframe containing it is removed from hidden window. I don't actually know if "unload" event will be triggered, but I presume it will.