Unit testing for dialog