Dialog windows tests

I loved learning to use Sinon.