http_api responding to send_message + tests