Fixed: error when transforming curl method names to local mehtod name

the PR verifies that the name of the intended 'local' method to be invoked is transformed correctly.