fixed logout dialog test.

remove unnecessary code.