Convert unittests from RUnit to testthat