Improve test coverage of HTTP API

s/expected/unexpected