Move HTTP testing-related funcs to http_test.go