added waitForDialogToClose to stamp tests