add DArray and pass tests