So I wrote a plugin on preLeadUpdate that calls dynamics webapi. When running unit tests against f.e the dev-environment from Visual Studio it works fine but when deploying