Deleted deprecated call_api function, set httpretty reset for testing expansion