Unit tests and reshuffling for NA, NaN handling in Rcpp