Updated refactored send_message and reordered
Added tests for mailgun