popup window closed property test

Use the button to open a popup window, then close it, then use the second button to check the value of the closed property.