testthat task fixes and enhancements