add test case for darray