Add test for evhttp_connection_free_on_completion