add test case for array based list