reduce copy/paste between HttpUtils's test_create() methods