added logout behaviour to prototype too.
fixed logout dialog test.