Introduce a test for `cp'.
Merge pull request #419 from jaysh/cp-tests

Introduce a test for `cp'.