testthat pkg bug workaround