Updated testthat and made change required for new version.