Merge "add unitest for api of resource providers inventories"