Testing logout function