make tests compatible with older versions of testthat