tests for Rcpp implementations