Tests: Unit: Popup: Make sure closed popup is not :visible and that open popup is :visible. Tests #5892.