Integrated http::loop_bodybuf into tests