Extend functional tests to check the chat window has been closed