Tests for HTTP APIs