Unit test for http_get; minor clean-ups

Change-Id: Ia329781b6b32a7376d26fd319c49dc7998c51ca6