fixed failing headpin-cli tests

Please refer the latest test report :
http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/job/official-headpin-cli/225/ReportNG_Report/ 

Please, review it once.
Thanks