create testhttp.py mock test for http collector