add unit test for dialog button function
add unit test for dialog clear function