add more tests for http api