refactor VcenterManager and implement test case for AvailabilityManager