Dialog windows tests

This, along with the dialog tests is the crux of this PR.