Adding unit tests and docs for `copy`.