Fix d_array_check_resize function
Update the dynamic array test