updated copy tests code