Test for request_cancel + fix token deletion bug