create some utility functions (for regression test)
corrected the serialization of the R table, it was wrong