Dialog windows tests

This makes dialog windows testing easy and fun.