update test case: list to map