checking whether deepcopy is correct or not