Improve test coverage of HTTP API

how about separate this to 
`TestParseBadRequest` and `TestParseGoodRequest` ?