Added some exception handling to unit test.
Added some exception handling to unit test.

gokuai/gokuai-swift,ktroach/openstack-sdk-php,programster/openstack-sdk-php,hurongsheng/gokuai-swift,hpcloud/HPCloud-PHP