Add test for the DeepCopyOp code and fix it.