Add some initial unit test to cover the HTTP API.