add d2h and h2d and test array