[Reviewer: Ellie] Enhance fakecurl to cope with the resetting of cURL options