Test the dialog box