Check that the log contains an 'Initial Activate', an 'Activated', and a 'View Loaded' line. Minimize/maximize the window. Check the log contains a 'Deactivated' and an 'Activated' line. Close the window. Check that a dialog appears saying 'Closed'.