test programs for R programming