[CB-2213] Added tests for copyTo and moveTo.