Added all tests from http_api tests to api_test