Unit tests for copy command with small tweak to task_simulator and tests
for it