move testthat tests from inst/tests to tests/testthat