Remove R version-specific stuff, add testthat package