Tests for the `copy` function in the Command Line API.