add unit test for dialog content function