Added unit test for async_send_event.