Added Unit test for Dialog handling