test: update function kill_keepalived.