test close dialog