Dialog windows tests

In #624 I'll also add an option to this helper that tests opening of dialogs via key combo.