Test session cancellation.