add test for dialog