fixed logout testing