Update test cases as refer to API changes.