Increase unit test coverage in hacking test
Increase unit test coverage in hacking test

Added a few unit tests to increase the test coverage from
~60% up to 90%.  Also modified the assertEqual of all tests
to be in the form of assertEqual(EXPECTED, ACTUAL) format.

Change-Id: If53cfae138c3e31d21e34aa86048d02a19fb6346

Datera/cinder,scottdangelo/RemoveVolumeMangerLocks,scality/cinder,leilihh/cinder,ge0rgi/cinder,NetApp/cinder,NetApp/cinder,winndows/cinder,phenoxim/cinder,sasukeh/cinder,Paul-Ezell/cinder-1,hguemar/cinder,cloudbase/cinder,tlakshman26/cinder-https-changes,tlakshman26/cinder-https-changes,Nexenta/cinder,Paul-Ezell/cinder-1,phenoxim/cinder,mahak/cinder,Accelerite/cinder,mahak/cinder,petrutlucian94/cinder,sasukeh/cinder,abusse/cinder,duhzecca/cinder,dims/cinder,winndows/cinder,manojhirway/ExistingImagesOnNFS,nikesh-mahalka/cinder,takeshineshiro/cinder,Accelerite/cinder,tlakshman26/cinder-new-branch,rakeshmi/cinder,eharney/cinder,Hybrid-Cloud/cinder,hguemar/cinder,manojhirway/ExistingImagesOnNFS,CloudServer/cinder,scottdangelo/RemoveVolumeMangerLocks,nexusriot/cinder,Akrog/cinder,potsmaster/cinder,abusse/cinder,duhzecca/cinder,openstack/cinder,bswartz/cinder,Datera/cinder,bswartz/cinder,scality/cinder,openstack/cinder,blueboxgroup/cinder,JioCloud/cinder,apporc/cinder,dims/cinder,Akrog/cinder,takeshineshiro/cinder,tlakshman26/cinder-bug-fix-volume-conversion-full,j-griffith/cinder,j-griffith/cinder,potsmaster/cinder,nexusriot/cinder,julianwang/cinder,leilihh/cinder,rakeshmi/cinder,tlakshman26/cinder-new-branch,petrutlucian94/cinder,Nexenta/cinder,tlakshman26/cinder-bug-fix-volume-conversion-full,saeki-masaki/cinder,julianwang/cinder,blueboxgroup/cinder,nikesh-mahalka/cinder,CloudServer/cinder,JioCloud/cinder,Hybrid-Cloud/cinder,apporc/cinder,eharney/cinder,cloudbase/cinder,saeki-masaki/cinder