Adding unittests for apex/deploy.py