ChatApp: frontend test for #_onWindowClose