Some better code comment in dialogs tests.
dialogTestHelper broken down into more function