Testing logout issue with tests