add more tests for http api

Okay I've got it like that.