Improve test coverage of HTTP API

oh yeah, this discussion happened in k8s recently... fixed.