Test the class inheritance of C++ class exposed by Rcpp Module