import patch from diffbot-testing