patch for incompatibility of testthat versions