Added test prepare to rdm