check if dialog occurs, test case