add unit tests for salt/modules/cp.py