refresh client auth token when get 401 from cc

update rspec to get the support of Object.any_instance
also update few cases to adopt to new rspec syntax

Change-Id: Idb09bd232b78e35a5839b26563b5137ecc0279e5