tested clone function