add test clone and fix clone-bug