add RMA test

this RMA test does the equivalent of Reduce using Accumulate.
it is not scalable because the buffer correctness checking treats
integers as unsigned char (to match memset) and thus will not work
when size*(size+1)/2>255.