Change the logout test.

Travis failed this test, probably because the dialog appeared too soon.