Improve unit test of APIList

Improve unit test of APIList