Dialog windows tests

#641.