Adding tests for logging out