Fix FormDialog test