added dynarray_delete and test_delete