Improve test coverage of HTTP API

oops